package com.itheima.service.impl;

import com.itheima.domain.City;
import com.itheima.mapper.CityMapper;
import com.itheima.service.CityService;
import com.itheima.uitls.MapperUtil;

import java.util.List;

public class CityServiceImpl implements CityService {
    @Override
    public List<City> findByPid(Integer pid) {
        CityMapper mapper = MapperUtil.getMapper(CityMapper.class);
        return mapper.findByPid(pid);
    }
}
